package org.zhaijisong.Controller;

import Publics.ResponseResUlt;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.zhaijisong.dao.WorksheetDao;

import org.zhaijisong.pojo.Worksheet;

@Controller
@RequestMapping("/worksheerimpl")
@CrossOrigin(value = "*")
public class WorksheetimplController {

    private WorksheetDao worksheetDao;

    @RequestMapping("/add")
    @ResponseBody
    public ResponseResUlt add(Worksheet worksheet){
        worksheetDao.add(worksheet);
        return ResponseResUlt.createSuccessResUle();
    }
}
